package com.lspopi.jetbrick.ext;

import java.util.Date;

import jetbrick.template.JetAnnotations;

import org.joda.time.DateTime;

@JetAnnotations.Methods
public class Methods {
	public static String format(Date date, String pattern) {
		DateTime dateTime = new DateTime(date.getTime());
		return dateTime.toString(pattern);
	}
}
